//
//  KLCurrencyEntity.h
//  KLCurrency
//
//  Created by apple on 2017/12/2.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import "KLBaseModel.h"

@interface KLCurrencyEntity : KLBaseModel

//数据库相关、本地存储
@property (nonatomic, assign) long long id;//货币本地id
//基本属性
@property (nonatomic, copy) NSString *name;//@"欧元"

@property (nonatomic, copy) NSString *nation;//@"欧洲"

@property (nonatomic, copy) NSString *abbreviation;//@"EUR"

@property (nonatomic, copy) NSString *symbol;//@"€"

@property (nonatomic, copy) NSString *image;//@"EUR"

//货币是否是首页展示数据
@property (nonatomic, assign, getter=isMain) BOOL main;
//货币是否是列表常选用货币
@property (nonatomic, assign, getter=isCommon) BOOL common;
//货币是否是本地货币 通过定位判断
@property (nonatomic, assign, getter=isLocal) BOOL local;

//数值
@property (nonatomic, copy) NSString *amount;//记录输入的数字转换为字符串
//算术式
@property (nonatomic, copy) NSString *arithmeticText;//记录输入的算术式
//货币是否正在选中被输入
@property (nonatomic, assign, getter=isEditing) BOOL editing;
//货币是否正在替换中
@property (nonatomic, assign, getter=isChanging) BOOL changing;
//货币是否正在rate中
@property (nonatomic, assign, getter=isShowingHistoricalRate) BOOL showingHistoricalRate;

//通过字典初始化
- (instancetype)initWithDictionary:(NSDictionary *)dict;

//通过数据库初始化
- (instancetype)initWithFMResultSet:(FMResultSet *)resultSet;


@end
